package com.huazi.www.doctor.doctorg.service.impl;

import com.huazi.util.SessionUtil;
import com.huazi.www.doctor.doctorg.dao.QueueDao;
import com.huazi.www.doctor.doctorg.dao.TotalbillDao;

import com.huazi.www.doctor.doctorg.service.Totalbillservice;
import org.apache.ibatis.session.SqlSession;

/**
 * 业务层
 */
public class TotalbillServiceImpl implements Totalbillservice {

    SqlSession session = SessionUtil.getSession();
    TotalbillDao mapper = session.getMapper(TotalbillDao.class);

    //得到检查的总费用
    @Override
    public double checkcost() {
        return mapper.checkcost();
    }

    //得到挂号的费用
    @Override
    public double guahaocost() {
        return mapper.guahaocost();
    }

    //得到药品的总价
    @Override
    public double drugcost() {
      return   mapper.drugcost();
    }
}
